﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="SolutionsKnowledgeBase.aspx.cs" Inherits="VSM.SolutionsKnowledgeBase" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
        function isNumberKey(sender, evt) {
            var txt = sender.value;
            var dotcontainer = txt.split('.');
            var charCode = (evt.which) ? evt.which : event.keyCode;
            if (!(dotcontainer.length == 1 && charCode == 46) && charCode > 31 && (charCode < 48 || charCode > 57))
                return false;

            return true;
        }
        function OpenItemPopup() {
            var supplier = $("#<%= txtVendorCode0.ClientID %>").val();

            var url = "../../ItemPopup.aspx?Supplier=" + supplier
            Main.openCustomDialog(url, 600, 610);
        }
        function OpenVendor() {

            var url = "../../VendorPopup.aspx";
            Main.openCustomDialog(url, 600, 610);
        }
    </script>
    <div>
        <asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:HiddenField ID="hdnIsUpdate" runat="server" />
                <asp:HiddenField ID="hdnStatus" runat="server" />
                <h2>
                    &nbsp;<asp:Label ID="lblTitle" runat="server" Text="Solutions Knowledge Base"></asp:Label>
                </h2>
                <div style="margin-left: 5px; width: 99%;">
                    <hr />
                    <table border="0" width="100%" style="background-color: #D1D4D8; font-weight: bold;">
                        <tr>
                            <td>
                                Item:</td>
                            <td style="width: 450px">
                                <asp:TextBox ID="txtVendorCode0" runat="server" BackColor="#E6E6E6" 
                                    ReadOnly="True" Width="100px">S10000</asp:TextBox>
                                <asp:TextBox ID="txtVendorName2" runat="server" Width="250px">Server Point 10000</asp:TextBox>
                                <asp:Button ID="btnSelectVendor1" runat="server" 
                                    OnClientClick="OpenVendor(); return false;" 
                                    Style="background-image: url('/Images/bgButton.png'); background-repeat: no-repeat; font-weight: bold" 
                                    Text="..." />
                            </td>
                            <td style="width: 100px">
                                Status:</td>
                            <td align="left">
                                <asp:DropDownList ID="ddl_Status" runat="server" Width="100px">
                                    <asp:ListItem Value="0">Internal</asp:ListItem>
                                    <asp:ListItem Value="1">Publish</asp:ListItem>
                                    <asp:ListItem Value="2">Review</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Updated By:</td>
                            <td style="width: 450px">
                                <asp:TextBox ID="txtVendorCode3" runat="server" BackColor="#E6E6E6" 
                                    ReadOnly="True" Width="100px">Jayson Butler</asp:TextBox>
                            </td>
                            <td style="width: 100px">
                                No.</td>
                            <td align="left">
                                <asp:TextBox ID="txtVendorCode1" runat="server" BackColor="#E6E6E6" 
                                    ReadOnly="True" Width="100px">25</asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 150px">
                                Updated On:</td>
                            <td style="width: 450px" >
                                <asp:TextBox ID="txtPODate" runat="server" AutoPostBack="True" 
                                    OnTextChanged="txtPODate_TextChanged">02/19/2014</asp:TextBox>
                                <cc1:CalendarExtender ID="CalendarExtender1" runat="server" Format="dd/MM/yyyy" 
                                    PopupButtonID="Image1" TargetControlID="txtPODate">
                                </cc1:CalendarExtender>
                                <asp:ImageButton ID="Image1" runat="Server" 
                                    AlternateText="Click to show calendar" 
                                    ImageUrl="~/Images/Calendar_scheduleHS.png" />
                            </td>
                            <td>
                                Owner:</td>
                            <td>
                                <asp:TextBox ID="txtVendorCode2" runat="server" BackColor="#E6E6E6" 
                                    ReadOnly="True" Width="100px">Jayson Butler</asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Solution:
                            </td>
                            <td style="width: 450px">
                                <asp:TextBox ID="txtConpersonName" runat="server" Width="368px">Faulty Bugi</asp:TextBox>
                            </td>
                            <td>Symptom:</td>
                            <td>
                                <asp:TextBox ID="txtTelephoneNo" runat="server" Width="368px">Printer displays message SIMM SERVICE ERROR</asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                <cc1:TabContainer ID="TabContainer1" runat="server" Width="100%" 
                                    ActiveTabIndex="0">
                                    <cc1:TabPanel ID="tabDescription" runat="server">
                                        <HeaderTemplate>Description</HeaderTemplate>
                                        <ContentTemplate>
                                            <table border="0" width="100%" style="background-color: #D1D4D8; font-weight: bold;">
                                                <tr>
                                                    <td>Cause:</td>
                                                    <td>
                                                        <asp:TextBox ID="txtCause" runat="server" Width="400px" ></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top">Remarks:</td>
                                                    <td>
                                                        <asp:TextBox ID="txtRemark" TextMode="MultiLine" runat="server" 
                                                            Width="400px"></asp:TextBox>
                                                    </td>
                                                </tr>
                                            </table>                                        
                                        </ContentTemplate>
                                    </cc1:TabPanel>
                                    <cc1:TabPanel ID="tabAttachment" runat="server">
                                        <HeaderTemplate>
                                            Attachments</HeaderTemplate>
                                        <ContentTemplate>
                                        </ContentTemplate>
                                    </cc1:TabPanel>
                                </cc1:TabContainer>
                            </td>
                        </tr>
                    </table>
                    <hr />
                </div>
                <table width="100%" border="0">
                    <tr>
                        <td colspan="2">
                            <table style="width: 100%">
                                <tr>
                                    <td style="width: 400px;">
                                        <asp:Button ID="btnSaveDraft" runat="server" Text="Save" Style="background-image: url('/Images/bgButton.png');
                                            background-repeat: no-repeat; color: White;" OnClick="btnSaveDraft_Click" BorderStyle="Solid" />
                                        <asp:Button ID="btnCancel" runat="server" Text="Cancel" Style="background-image: url('/Images/bgButton.png');
                                            background-repeat: no-repeat; color: White;" BorderStyle="Solid" OnClick="btnCancel_Click" />
                                    </td>
                                    <td>
                                        <asp:Label ID="lblError" runat="server" Visible="False" Font-Bold="True" ForeColor="Red"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
